import request from '@/utils/request'

// 查询加油站照片列表
export function listImage1(query) {
  return request({
    url: '/shop/image1/list',
    method: 'get',
    params: query
  })
}
// 查询加油站列表
export function listPetrol(query) {
  return request({
    url: '/shop/petrol/list1',
    method: 'get',
    params: query
  })
}

// 查询加油站照片详细
export function getImage1(id) {
  return request({
    url: '/shop/image1/' + id,
    method: 'get'
  })
}

// 新增加油站照片
export function addImage1(data) {
  return request({
    url: '/shop/image1',
    method: 'post',
    data: data
  })
}

// 修改加油站照片
export function updateImage1(data) {
  return request({
    url: '/shop/image1',
    method: 'put',
    data: data
  })
}

// 删除加油站照片
export function delImage1(id) {
  return request({
    url: '/shop/image1/' + id,
    method: 'delete'
  })
}
